﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="uc_AddJob.aspx.cs" Inherits="HFWebApp.user.uc_AddJob" %>
<%@ Register src="../Control/top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../Control/end.ascx" tagname="end" tagprefix="uc2" %>
<%@ Register src="c_LeftMenu.ascx" tagname="c_LeftMenu" tagprefix="uc3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>用户管理中心_红法网</title>
<link href="<%=this.getDemain %>/Style/Style.css" rel="stylesheet" type="text/css" />
<link href="<%=this.getDemain %>/Style/CenterStyle.css" rel="stylesheet" type="text/css" />
<link href="<%=this.getDemain %>/CSS.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=this.getDemain %>/javascript/SwitchTags.js"></script>
<script type="text/javascript" src="<%=this.getDemain %>/Scripts/WebFunction.js"></script>
<script type="text/javascript">
    $(function () {
        loadProvince('provinceid', 'cityid');
    });
    function sendInfo() {
        var names = $("#names");
        if (names.val() == "") {
            alert('用户名必填');
            names.focus();
            return false;
        }
        var sex = $("#sex"); 
        var marriage = $("#marriage"); 
        var height = $("#height"); 
        var school = $("#school"); 
        var specialty = $("#specialty"); 
        var academic = $("#academic"); 
        var language = $("#language"); 
        var computer = $("#computer"); 
        var isexamination = $("#isexamination");
        var phone = $("#phone");
        if (phone.val() == "") {
            alert('联系电话必填');
            phone.focus();
            return false;
        }
        var personweb = $("#personweb"); 
        var accountplace = $("#accountplace"); 
        var nowplace = $("#nowplace"); 
        var addr = $("#addr");
        var jobsid = $("#jobsid");
        if (jobsid.val() == "0") {
            alert('岗位类别必须选择');
            jobsid.focus();
            return false;
        }
        var provinceid = $("#provinceid");
        if (provinceid.val() == "0") {
            alert('请选择您的工作省份');
            provinceid.focus();
            return false;
        }
        var cityid = $("#cityid");
        if (cityid.val() == "0") {
            alert('请选择您的工作城市');
            provinceid.focus();
            return false;
        }
        var treatment = $("#treatment"); 
        var personinfo = $("#personinfo");
        var workexe = $("#workexe");

        $.getJSON(
            "/AjaxSource/AddWanted.ashx",
            {
                names: names.val(),
                sex: sex.val(),
                marriage: marriage.val(),
                height: height.val(),
                school: school.val(),
                specialty: specialty.val(),
                academic: academic.val(),
                language: language.val(),
                computer: computer.val(),
                isexamination: isexamination.val(),
                phone: phone.val(),
                personweb: personweb.val(),
                accountplace: accountplace.val(),
                nowplace: nowplace.val(),
                addr: addr.val(),
                jobsid: jobsid.val(),
                provinceid: provinceid.val(),
                cityid: cityid.val(),
                treatment: treatment.val(),
                personinfo: personinfo.val(),
                workexe: workexe.val(),
                rand: Math.floor(Math.random() * 10000).toString()
            },
            function (jsonData) {
                if (jsonData.isTrue) {
                    alert(jsonData.Message);
                    location = 'uc_JobList.aspx';
                } else {
                    alert(jsonData.Message);
                }
            }
        );

        return false;
    }
</script>
    <style type="text/css">
        #Text8
        {
            width: 201px;
        }
    </style>
</head>

<body>
<uc1:top ID="top1" MenuClassID="1" focusLink1="focusLink" runat="server" />
<div id="c_BodyBox">
    <div class="c_LeftMenu">
        <uc3:c_LeftMenu ID="c_LeftMenu1" runat="server" />
    </div>
    <div class="c_RightContent">
        <h3>发布求职信息</h3>
        <div class="c_MessageBox">
            <ul>
            <form id="modifyForm" onsubmit="return sendInfo();">
                <li>
                    <div class="c_MB_Left">联系人姓名</div>
                    <div class="c_MB_Mid"><input name="names" type="text" id="names" value="" size="40" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">性别</div>
                    <div class="c_MB_Mid"><input name="sex" checked="checked" id="sex" value="1" type="radio" />男&nbsp;
                        &nbsp;<input id="sex" name="sex" value="0" type="radio" />女&nbsp;</div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">婚姻状况</div>
                    <div class="c_MB_Mid"><input id="marriage" name="marriage" value="1" type="radio" />已婚&nbsp;
                        &nbsp;<input id="marriage" checked="checked" name="marriage" value="0" type="radio" />未婚&nbsp;</div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">身高</div>
                    <div class="c_MB_Mid"><input name="height" type="text" id="height" value="165" size="4" />&nbsp;厘米</div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">毕业学校</div>
                    <div class="c_MB_Mid"><input name="school" type="text" id="school" value="" size="10" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">所学专业</div>
                    <div class="c_MB_Mid"><input name="specialty" type="text" id="specialty" value="" size="10" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">学历</div>
                    <div class="c_MB_Mid"><select name="academic" id="academic">
                  <option value="小学">小学</option>
                  <option value="初中">初中</option>
                  <option value="高中">高中</option>
                  <option value="中专">中专</option>
                  <option value="大专" selected="selected">大专</option>
                  <option value="本科">本科</option>
                  <option value="本科以上">本科以上</option>
                </select></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">外语水平</div>
                    <div class="c_MB_Mid"><input name="language" type="text" id="language" value="" size="10" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">计算机水平</div>
                    <div class="c_MB_Mid"><input name="computer" type="text" id="computer" value="" size="10" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">是否通过司法考试</div>
                    <div class="c_MB_Mid"><input id="isexamination" checked="checked" name="isexamination" value="1" type="radio" />是&nbsp;
                        &nbsp;<input id="isexamination" name="isexamination" value="0" type="radio" />否&nbsp;</div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">联系电话</div>
                    <div class="c_MB_Mid"><input name="phone" type="text" id="phone" value="" size="10" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">个人主页</div>
                    <div class="c_MB_Mid"><input name="personweb" type="text" id="personweb" value="http://" size="40" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">户口所在</div>
                    <div class="c_MB_Mid"><input name="accountplace" type="text" id="accountplace" value="" size="40" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">目前所在</div>
                    <div class="c_MB_Mid"><input name="nowplace" type="text" id="nowplace" value="" size="40" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">通信地址</div>
                    <div class="c_MB_Mid"><input name="addr" type="text" id="addr" value="" size="40" /></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">岗位类别</div>
                    <div class="c_MB_Mid"><select name="jobsid" id="jobsid">
                        <option value="0">请选择</option>
                        <asp:Repeater ID="Repeater1" runat="server">
                            <ItemTemplate>
                                <option value="<%#Eval("ID") %>"><%#Eval("JobsName") %></option>
                            </ItemTemplate>
                        </asp:Repeater>
                </select></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li>
                    <div class="c_MB_Left">工作地点</div>
                    <div class="c_MB_Mid"><select name="provinceid" id="provinceid">
                  <option value="0">请选择</option>
                </select>
                  <select name="cityid" id="cityid">
                    <option value="0">请选择</option>
                </select></div>
                    <div class="c_MB_Right"></div>
                </li>
                <li class="liFix2">
                    <div class="c_MB_Left">待遇要求</div>
                    <div class="c_MB_Mid_Fix"><textarea name="treatment" id="treatment" cols="40" rows="6">面议</textarea></div>
                </li>
                <li>
                    <div class="c_MB_Left">自我介绍</div>
                    <div class="c_MB_Mid_Fix"><textarea name="personinfo" id="personinfo" cols="40" rows="6"></textarea></div>
                </li>
                <li>
                    <div class="c_MB_Left">工作经验</div>
                    <div class="c_MB_Mid_Fix"><textarea name="workexe" id="workexe" cols="40" rows="6"></textarea></div>
                </li>
                <li>
                    <div class="c_MB_Left"></div>
                    <div class="c_MB_Mid"><input id="Button1" type="submit" value="确认发送" /></div>
                    <div class="c_MB_Right"></div>
                </li>
            </form>
            </ul>
            
        </div>
        <br />
    </div>
</div>
<uc2:end ID="end1" runat="server" />
</body>
</html>